package com.ccjq.shosestore.order.service;

import com.ccjq.shosestore.order.bo.orderBo;
import com.ccjq.shosestore.order.bo.orderBoGl;

import java.util.List;

public interface orderService {
    /**
     * 添加订单信息
     * @param order
     * @return
     */
    boolean insertOrderXinXi(orderBo order);

    /**
     * 添加订单关联表
     * @param order
     * @param prid
     * @param quantity
     * @param price
     * @return
     */
    boolean insertOrderGL(orderBo order);

    /**
     * 更改库存中的数量
     * @param prid
     * @param quantity
     * @return
     */

    boolean updateStock(String prid,int quantity);
    void deleteShopCar(String userid);
    orderBo  selectXinXi(String id);

    boolean selectquntity(String prid,int newQuntity);
    int  UpdateStock(orderBo order);


    List<orderBo> selectAll(int startRow, int pageSize);

    int  zhs(String userid);

    orderBo dingdanXinXi(String orid);

    List<orderBoGl> shangpin(String orid);
}
